package com.cdp.zwy.zwy_manager_back_v1.mapper;

import com.cdp.zwy.zwy_manager_back_v1.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author bug制作者
 * @version 1.0
 * @description: TODO
 * @date 2025/4/14 19:07
 */
@Mapper
public interface ArticleMapper {
    int insert(Article Article);
    int deleteById(Integer id);
    int update(Article Article);
    Article selectById(Integer id);
    List<Article> selectAll();
    List<Article> selectFuzzy(String title);
    void updateLikes(@Param("id") Integer id, @Param("likes") Integer likes); // <-- 新增此方法

}
